package model;

public class Lighter {
    //true means green
    private boolean status;
    public void turnGreen(){
        this.status = true;
    }
    public void turnRed(){
        this.status = false;
    }

    public Lighter(boolean status) {
        this.status = status;
    }
    //默认为红灯
    public Lighter() {
        this.status = false;
    }
}
